package com.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * AccpTask entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ACCP_TASK", schema = "ACCP")
public class AccpTask implements java.io.Serializable {

	// Fields

	private Integer tid;
	private AccpSubject accpSubject;
	private AccpClass accpClass;
	private AccpTeacher accpTeacher;
	private AccpSubjectitems accpSubjectitems;
	private Timestamp settime;
	private Double lv;
	private Double vote;
	private Double lv2;
	private String status;

	// Constructors

	/** default constructor */
	public AccpTask() {
	}

	/** minimal constructor */
	public AccpTask(Integer tid) {
		this.tid = tid;
	}

	/** full constructor */
	public AccpTask(Integer tid, AccpSubject accpSubject, AccpClass accpClass,
			AccpTeacher accpTeacher, AccpSubjectitems accpSubjectitems,
			Timestamp settime, Double lv, Double vote, Double lv2, String status) {
		this.tid = tid;
		this.accpSubject = accpSubject;
		this.accpClass = accpClass;
		this.accpTeacher = accpTeacher;
		this.accpSubjectitems = accpSubjectitems;
		this.settime = settime;
		this.lv = lv;
		this.vote = vote;
		this.lv2 = lv2;
		this.status = status;
	}

	// Property accessors
	@Id
	@Column(name = "TID", unique = true, nullable = false, precision = 8, scale = 0)
	public Integer getTid() {
		return this.tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "SID")
	public AccpSubject getAccpSubject() {
		return this.accpSubject;
	}

	public void setAccpSubject(AccpSubject accpSubject) {
		this.accpSubject = accpSubject;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "CID")
	public AccpClass getAccpClass() {
		return this.accpClass;
	}

	public void setAccpClass(AccpClass accpClass) {
		this.accpClass = accpClass;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "TEACHERID")
	public AccpTeacher getAccpTeacher() {
		return this.accpTeacher;
	}

	public void setAccpTeacher(AccpTeacher accpTeacher) {
		this.accpTeacher = accpTeacher;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ZHANGID")
	public AccpSubjectitems getAccpSubjectitems() {
		return this.accpSubjectitems;
	}

	public void setAccpSubjectitems(AccpSubjectitems accpSubjectitems) {
		this.accpSubjectitems = accpSubjectitems;
	}

	@Column(name = "SETTIME", length = 7)
	public Timestamp getSettime() {
		return this.settime;
	}

	public void setSettime(Timestamp settime) {
		this.settime = settime;
	}

	@Column(name = "LV", precision = 8)
	public Double getLv() {
		return this.lv;
	}

	public void setLv(Double lv) {
		this.lv = lv;
	}

	@Column(name = "VOTE", precision = 8)
	public Double getVote() {
		return this.vote;
	}

	public void setVote(Double vote) {
		this.vote = vote;
	}

	@Column(name = "LV2", precision = 8)
	public Double getLv2() {
		return this.lv2;
	}

	public void setLv2(Double lv2) {
		this.lv2 = lv2;
	}

	@Column(name = "STATUS", length = 10)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}